package me.ereach.set;

public class Main {

    public static void main(String[] args) {
        Queue<String> list1 = new Queue<>(5);
        list1.add("a");
        list1.add("b");
        list1.add("c");

        var iterator = list1.iterator();

        while (iterator.hasNext()) {
            var current = iterator.next();
            System.out.println(current);
        }
    }
}
